import { ApiCache } from './cacheApi.js'
import api from  './index.js'
class ApiController extends ApiCache {
	constructor(timeout) {
		this.timeout = timeout
	    super(timeout)
	}
	
	getData(apiUrl) {
		let apiData = this.getCache(api)
		if( apiData ===  101) {
			// 需要请求数据
			console.log('需要请求api')
		} else {
			return apiData
		}
	}
}
export default ApiController